package com.shops.entity;

import java.io.Serializable;
import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

import com.alibaba.fastjson.annotation.JSONField;


public class Employ implements Serializable {
	private String id;
	private String name;
	private String salary;
	private Integer age;
	@DateTimeFormat(pattern="yyyy-MM-dd")
	@JSONField(format="yyyy-MM-dd")
	private Date	bir;
	private String departId;
	private Depart depart;
	public Employ() {
		super();
		// TODO Auto-generated constructor stub
	}
	public Employ(String id, String name, String salary, Integer age, Date bir,
			String departId, Depart depart) {
		super();
		this.id = id;
		this.name = name;
		this.salary = salary;
		this.age = age;
		this.bir = bir;
		this.departId = departId;
		this.depart = depart;
	}
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getSalary() {
		return salary;
	}
	public void setSalary(String salary) {
		this.salary = salary;
	}
	public Integer getAge() {
		return age;
	}
	public void setAge(Integer age) {
		this.age = age;
	}
	public Date getBir() {
		return bir;
	}
	public void setBir(Date bir) {
		this.bir = bir;
	}
	public String getDepartId() {
		return departId;
	}
	public void setDepartId(String departId) {
		this.departId = departId;
	}
	public Depart getDepart() {
		return depart;
	}
	public void setDepart(Depart depart) {
		this.depart = depart;
	}
	@Override
	public String toString() {
		return "Employ [id=" + id + ", name=" + name + ", salary=" + salary
				+ ", age=" + age + ", bir=" + bir + ", departId=" + departId
				+ ", depart=" + depart + "]";
	}
	
	
}
